<!-- target:edit -->
<div class="grey-bg flex-cont" ui="type:m-panel">
    <form name="sponsorAddForm" class="vertical-arrangement">

        <div class="title-blank-grey"></div>

        <!-- if: ${detail.id} -->
        <input name="id" value="${detail.id}" class="ui-hide">
        <!-- /if -->

        <div class="edit-item inline-radio" ui="type:mao.ui.InputGroup;label:类型;required:true">
            <div class="edit-input radio">
                <div ui="type:NS.Type;name:type;value:1;={${detail.type} === 1 || ${detail} === undefined ? 'checked' : ''}">
                    <span>公司</span>
                    <span class="icon"></span>
                </div>
                <div ui="type:NS.Type;name:type;value:2;={${detail.type} === 2 ? 'checked' : ''}">
                    <span>个人</span>
                    <span class="icon"></span>
                </div>
            </div>
        </div>
    </form>
    <form name="sponsorAddCompanyForm" class="vertical-arrangement ={${detail.type} === 1 || ${detail} === undefined  ? '' : 'ui-hide'}">

        <div class="edit-item" ui="type:mao.ui.InputGroup;label:={${id} ? '主办方名称' : '厂牌名称'};required:true">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="forShort" value="${detail.forShort}" placeholder="请输入厂牌名称或具有共识性的名称" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:公司名称;required:true">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="sponsorName" value="${detail.sponsorName}" placeholder="营业执照 注册公司名称" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:营业执照号;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="validDocumentation" value="${detail.validDocumentation}" placeholder="请输入营业执照号" />
            </div>
        </div>
        <div class="edit-item image" ui="type:mao.ui.InputGroup;">
            <span class="ui-input-label">LOGO</span>
            <div class="ui-images">
                <div  ui="type:mao.ui.ImageAdd;value:${item.value.id};${regexp}" class="edit-text">
                    <input name="file" data-name="file" type="file" class="file" />
                    <input name="logo" type="text" value="${detail.logo}" class="ui-hide" />
                    <img src="={${detail.logoUrl} || 'images/order/add_gray.png'}" />
                </div>
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:省市;">
            <div ui="type:mao.ui.CitySelect;text:${detail.region|parseCity};level:2;value:${detail.region}" class="edit-text select-wrap">
                <input type="text" name="region" placeholder="选择省市" value="${detail.region}" class="ui-hide" />
            </div>
            <span class="edit-icon"></span>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:街道;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="street" value="${detail.street}" placeholder="请输入公司街道门牌号" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:联系电话;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="contactPhone" value="${detail.contactPhone}" placeholder="主办联系电话" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:电子邮件;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="email" value="${detail.email}" placeholder="用于系统发送邮件请核实后填写" />
            </div>
        </div>
        
        <!-- <div class="edit-item" ui="type:mao.ui.InputGroup;label:公司抬头;required:true">
            <div class="edit-input placeholder" ui="type:mao.ui.SelectEdit;title:公司抬头;items:&{mao.info.baseInfo.subjectList};name:affiliateCompanyId;value:${detail.affiliateCompanyId};text:${detail.affiliateCompanyName};"></div>
            <span class="edit-icon"></span>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:承担人;required:true">
            <div class="edit-input placeholder" ui="type:mao.ui.ChooseDeptStaff;id:accountUnit1;title:承担人;name:applyPersonId;value:${applyPersonId};text:${applyPersonName};"></div>
            <span class="edit-icon"></span>
        </div> -->


    </form>
    <form name="sponsorAddPeopleForm" class="vertical-arrangement  ={${detail.type} === 2 ? '' : 'ui-hide'}">
        
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:个人姓名;required:true">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="forShort" value="${detail.forShort}" placeholder="请输入个人姓名" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:公司名称;required:true">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="sponsorName" value="${detail.sponsorName}" placeholder="请输入公司名称" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:身份证号;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="validDocumentation" value="${detail.validDocumentation}" placeholder="请输入身份证号" />
            </div>
        </div>
        <div class="edit-item image" ui="type:mao.ui.InputGroup;">
            <span class="ui-input-label">LOGO</span>
            <div class="ui-images">
                <div  ui="type:mao.ui.ImageAdd;value:${item.value.id};${regexp}" class="edit-text">
                    <input name="file" data-name="file" type="file" class="file" />
                    <input name="logo" type="text" value="${detail.logo}" class="ui-hide" />
                    <img src="={${item.value.imageUrl} ? ${item.value.imageUrl} : 'images/order/add_gray.png'}" />
                </div>
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:省市;">
            <!-- var: text = ${item.text} || ${item.placeholder}; -->
            <div ui="type:mao.ui.CitySelect;text:${text};level:2;value:${detail.region}" class="edit-text select-wrap">
                <input type="text" name="region"  value="${detail.region}" class="ui-hide" />
            </div>
            <span class="edit-icon"></span>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:街道;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="street" value="${detail.street}" placeholder="请输入公司街道门牌号" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:联系电话;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="contactPhone" value="${detail.contactPhone}" placeholder="主办联系电话" />
            </div>
        </div>
        <div class="edit-item" ui="type:mao.ui.InputGroup;label:电子邮件;">
            <div ui="type:Text;" class="edit-text">
                <input type="text" name="email" value="${detail.email}" placeholder="用于系统发送邮件请核实后填写" />
            </div>
        </div>
    </form>
    <div class="blank-24"></div>
</div>

<div class="edit-btn-box">
    <div class="ui-button ui-button-primary submit-btn" ui="type:NS.SaveOrder;optId:${detail.id}">提交</div>
</div>
